<%@ page language="java" contentType="text/html; charset=utf-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<% 
	String path = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>大连开发区健身中心</title>
		<link type="text/css" rel="stylesheet" href="<%=path %>/admin/styles/default.css" />
		<script type="text/javascript" src="<%=path %>/res/js/jquery.js"></script>
		<script type="text/javascript" src="<%=path %>/res/js/common.js"></script>
		<script type="text/javascript" src="<%=path %>/admin/utils/My97DatePicker/WdatePicker.js"></script>
		<script type="text/javascript" src="<%=path %>/admin/pages/message/js/messageList.js"></script>
		<script type="text/javascript" src="<%=path %>/admin/pages/message/js/messageAdd.js"></script>
	</head>
	<body>
		<form name="form1" method="post" action="<%=path %>/admin/message!list.action">
		<input type="hidden" id="message" value="${message}"/>
		<input type="hidden" id="webPath" value="<%=path %>"/>
		<input type="hidden" id="msgId" name="msgId" value=""/>
		<input type="hidden" id="method" value="<s:property value="#request.method"/>"/>
		<table id="table-data-outter">
			<tr>
				<td>
					<table id="table-data-inner" cellspacing="1">
						<tr id="tr-menu-path">
							<td colspan="6" nowrap="nowrap">
								<fieldset id="f-menu-path">当前位置:&nbsp;信息管理 &gt; 信息查询</fieldset>
								<fieldset id="f-condition-display">
										<img src="<%=path%>/admin/images/main/display_on.gif" onclick="displayCondition(this,'tr-menu-path')" 
											align="bottom" width="17" height="15" alt="隐藏查询条件" /></fieldset>
							</td>
						</tr>
						<tr id="tr-condition">
							<td width="10%" class="field-title">开始日期: </td>
							<td width="15%" class="field-content">
								<input type="text" id="beginDate" name="beginDate" style="width:120px"
								value="<s:property value='beginDate' />" readonly="readonly"
								onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'#F{$dp.$D(\'endDate\')||\'2020-10-01\'}'})" />
							</td>
							<td width="10%" class="field-title">结束日期: </td>
							<td width="15%" class="field-content">
								<input type="text" id="endDate" name="endDate" style="width:120px"
								value="<s:property value='endDate' />" readonly="readonly"
								onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',minDate:'#F{$dp.$D(\'beginDate\')||\'2020-10-01\'}'})" />
							</td>
							<td width="10%" class="field-title">信息栏目: </td>
							<td width="40%" class="field-content">
								<select name="type" onchange="changeListType(this.value)">
									<option value="">--请选择--</option>
									<s:iterator value="typeList" status="index">
									<option value="<s:property value="menuId"/>" <s:if test='type==null && type==""'> 
										<s:if test='parentId == menuId'>selected="selected"</s:if>
										</s:if> 
										<s:else>
											<s:if test='type == menuId'>selected="selected"</s:if>
										</s:else>
										>
										<s:property value="menuName"/>
									</option>
									</s:iterator>
								</select>
								　－　
								<select id="id_subType" name="subType">
									<option  value="">--请选择--</option>
									<s:if test='type!=null && type!=""'>
									<s:iterator value="typeSubList" status="index">
									<option value="<s:property value="menuId"/>" <s:if test='subType == menuId'>selected="selected"</s:if>>
										<s:property value="menuName"/>
									</option>
									</s:iterator>
									</s:if>
								</select>
							</td>
						</tr>
					</table>
					<div id="div-button" align="center">
						<s:token></s:token>
						<input type="submit" value="查询 "/>
					</div>
					<table id="table-view" cellpadding="0" cellspacing="1">
						<tr class="row-header">
							<td width="5%">序号</td>
							<td>信息标题</td>
							<td width="15%">创建日期</td>
							<td width="10%">信息状态</td>
							<td width="10%">操作</td>
						</tr>
						<s:iterator value="resultList" status="index">
							<s:if test='#index.odd == true'>
								<s:set name="var_class" value="'row-odd'" />
							</s:if>
							<s:else>
								<s:set name="var_class" value="'row-even'" />
							</s:else>
							<tr class="<s:property value='var_class' />"
						 	onmouseover="this.className='row-over'" onmouseout="this.className='<s:property value='var_class' />'">
								<td align="center"><s:property value="#index.count"/> </td>
								<td align="left"><s:property value="msgTitle"/></td>
								<td align="center"><s:property value="publishTime"/></td>
								<td align="center"><s:property value="@com.beehoo.dcportal.utils.CommonUtils@getMessageState(msgState)"/></td>
								<td align="center">
								<s:if test='msgState == "0"||msgState == "3"'>
								<a href="<%=path%>/admin/message!initUpdate.action?msgId=<s:property value="msgId"/>">修改</a>
								||
								<a href="javascript:void(0);" onclick="delMsg(<s:property value="msgId"/>)">删除</a>
								</s:if>
								</td>
							</tr>
						</s:iterator>
					</table>
					<%@ include file="../system/page.jsp"%>
				</td>
			</tr>
		</table>
		</form>
	</body>
</html>